var config = {
	/**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
    set_url: {
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
    },

    select:[
    	[{
            label: "单据日期",
            type: "daterange",
            field: "bill_date",
            placeholder: "选择日期",
            span: 8,
            range:"至",
            start:"开始时间",
            end:"结束时间"
    	},{
            label: "单据编号",
            type: "input",
            field: "bills_sn",
            placeholder: "输入单据编号",
            span: 6,
    	}],
    	[{
            label: "客户",
            type: "input",
            field: "client_name",
            placeholder: "输入客户",
            span: 6,
    	},{
            label: "",
            type: "radio",
            field: "invoice",
            span: 12,
            option:[{
            	value:1,
            	label:"已全部开票"
            },{
            	value:2,
            	label:"未全部开票"
            }]
    	}]
    ],

    /**
     * 表格操作按钮配置
     */
    action:[{
    	label:"确定",
    	type:"primary",
    	icon:"",
    	callback:{
    		type:"target",
    		path:"/empty"
    	}
    },{
    	label:"开票记录",
    	type:"default",
    	icon:"",
    	callback:{
    		type:"target",
    		path:"/empty"
    	}
    }],


    /**
     * 表格配置
     */
     selection:true,
     model:"input",
     table:[{
        label: "单据日期",
        type: "input",
        field: "date",
        labelWidth:140,
        sortable: false,
        amend:false,
     },{
        label: "单据编号",
        type: "input",
        field: "bills_sn",
        labelWidth:140,
        sortable: false,
        amend:false,
     },{
        label: "客户",
        type: "input",
        field: "client_name",
        labelWidth:200,
        sortable: false,
        amend:false,
     },{
        label: "金额",
        type: "input",
        field: "money",
        labelWidth:140,
        sortable: false,
        amend:false,
     },{
        label: "已开发票金额",
        type: "input",
        field: "already_invoice",
        labelWidth:140,
        sortable: false,
        amend:false,
     },{
        label: "未开发票金额",
        type: "input",
        field: "no_invoice",
        labelWidth:140,
        sortable: false,
        amend:false,
     },{
        label: "本次开票金额",
        type: "input",
        field: "the_invoice",
        labelWidth:140,
        sortable: false,
        amend:false,
     }],


     /**
      * 分页配置
      * @type {Object}
      */
     page:{
     	size:10,
     	current:1,
     	total:100,
     }

}
export default config;


